import { IsNotEmpty, MaxLength, MinLength } from 'class-validator';

export class LoginAuthDto {
  @IsNotEmpty({ message: 'username is required' })
  username: string;
  @IsNotEmpty({ message: 'password is required' })
  @MaxLength(20, { message: '密码最大长度为20' })
  @MinLength(3, { message: '密码最小长度为3' })
  password: string;
  role?: string
}
